
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="/static/common/common.jsp"%>
    <script src="/static/js/system/layout/potentialCustomer.js"></script>
    <title>潜在客户管理</title>
</head>
<body>
<table id="potentialCustomer_dataGrid"></table>

<div id="potentialCustomer_toolbar">
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="show" onclick="show()">查看</a>
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="add">新增</a>
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="edit">编辑</a>
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="remove">删除</a>
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="reload">刷新</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" data-cmd="exportExcel">导出</a>
    <a href="#" id="editStateButton" class="easyui-linkbutton" data-options="plain:true" data-cmd="editState">修改状态</a>
    <a href="#" id="followStudentButton" class="easyui-linkbutton" data-options="plain:true" data-cmd="followStudent">学员跟踪</a>
    <a href="#" id="examButton" class="easyui-linkbutton" data-options="plain:true" data-cmd="exam">考试登记</a>
    关键字:
    <input class="easyui-textbox" style="width:120px" prompt="客户姓名/电话/QQ" id="keyword">
    建档时间:
    <input class="easyui-datebox" style="width:120px" editable="false" id="createTimeBegin">
    -
    <input class="easyui-datebox" style="width:120px" editable="false" id="createTimeEnd">
    营销人员:
    <input class="easyui-combobox " style="width:150px" editable="false" id="marketingPerson"
           data-options="url:'/employee/queryEmployeeListByDepartmentId?id=3',
                              valueField:'id', textField:'realname',panelHeight:'auto'" >
    状态:
    <input class="easyui-combobox " style="width:150px" id="state"
           data-options="data:[{value:1,text:'未跟踪'},{value:2,text:'跟踪中'},{value:3,text:'资源池中'},{value:4,text:'正式学员'},{value:5,text:'丢单'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'" >
    <a href="#" class="easyui-linkbutton" data-options="plain:true" data-cmd="query">搜索</a>
</div>


<%--潜在客户添加和编辑对话框--%>
<div id="potentialCustomer_dialog">
    <form id="potentialCustomer_form" method="POST" style="padding:20px">
        <input id="potentialCustomerId" type="hidden" name="id">
        <fieldset >
            <legend>基本信息</legend>
            <table align="center">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="name"></td>
                    <td>年龄:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="age"></td>
                    <td>性别:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="gender"
                               data-options="data:[{value:'男',text:'男'},{value:'女',text:'女'}]
                                            ,valueField:'value', textField:'text',panelHeight:'auto'" >
                    </td>
                </tr>
               <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="phone" ></td>
                    <td>微信:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="weixin" ></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="qq" ></td>
                </tr>
                <tr>
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="email" ></td>
                    <td>意向校区:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="intentionCampus.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=12',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>意向班级:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="intentionClass.id"
                               data-options="url:'/grade/queryAllGrade',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                   <td>意向程度:</td>
                   <td><input class="easyui-combobox com" style="width:150px" editable="false" name="intentionDegree.id"
                              data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=16',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                   </td>
                   <td>营销人员:</td>
                   <td><input class="easyui-combobox com" style="width:150px" editable="false" name="marketingPerson.id"
                              data-options="url:'/employee/queryEmployeeListByDepartmentId?id=3',
                              valueField:'id', textField:'realname',panelHeight:'auto'" >
                   </td>
                   <td>录入人:</td>
                   <td><input class="easyui-textbox" style="width:150px" editable="false" prompt="录入人不用填" name="inputPerson" >
                   </td>
               </tr>
               <tr>
                   <td>建档日期:</td>
                   <td><input class="easyui-datebox date" style="width:150px" editable="false" name="createTime"></td>
                   <td>录入时间:</td>
                   <td><input class="easyui-datebox" style="width:150px" editable="false" readonly="true" prompt="录入时间不用填" name="inputTime"></td>
                   <td>客户来源:</td>
                   <td><input class="easyui-combobox com" style="width:150px" editable="false" name="source.id"
                              data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=14',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                   </td>
               </tr>
                <tr>
                   <td>学校:</td>
                   <td><input class="easyui-textbox text" style="width:150px" name="school"></td>
                   <td>学校客户:</td>
                   <td><input class="easyui-combobox com" style="width:150px" name="schoolId.id"
                              data-options="url:'/bigClient/queryAllBigClient',
                              valueField:'id', textField:'schoolName',panelHeight:'auto'" >
                   </td>
                    <td>学历:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="educationBackground.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=10',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>专业:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="major" >
                    <td>入学时间:</td>
                    <td><input class="easyui-datebox date" style="width:150px" editable="false" name="enrollmentTime"></td>
                    <td>工作年限:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="jobTime">
                    </td>
                </tr>
                <tr>
                    <td>介绍人:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="introducer"></td>
                    <td>电脑:</td>
                    <td><input class="easyui-combobox com" style="width:150px" name="hasComputer"
                               data-options="data:[{value:'自己携带',text:'自己携带'},{value:'学校提供',text:'学校提供'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'" >
                    </td>
                    <td>状态:</td>
                    <td><input class="easyui-combobox" style="width:150px" name="state" readonly="true" prompt="状态不用填"
                              data-options="data:[{value:1,text:'未跟踪'},{value:2,text:'跟踪中'},{value:3,text:'资源池中'},{value:4,text:'正式学员'},{value:5,text:'丢单'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'" >
                    </td>
                </tr>
        </table>
    </fieldset>
    <fieldset>
        <legend>其它信息</legend>
        <table align="center">
            <tr>
                <td>关注问题:</td>
                <td><input class="easyui-textbox text" style="width:600px; height:100px;" multiline="true" name="problemFocused"></td>
            </tr>
            <tr>
                <td>备注:</td>
                <td><input class="easyui-textbox text" style="width:600px; height:100px;" multiline="true" name="remark"></td>
            </tr>
        </table>
    </fieldset>
    </form>
</div>
<%--潜在客户添加和编辑对话框--底部按钮--%>
<div id="potentialCustomer_dialog_butten">
    <a href="#" class="easyui-linkbutton" data-cmd="save" >保存</a>
    <a href="#" class="easyui-linkbutton" data-cmd="close_dialog" >关闭</a>
</div>


<%--状态添加和编辑对话框--%>
<div id="potentialCustomer_state_dialog">
    <form id="potentialCustomer_state_form" method="POST" style="padding:20px">
        <input id="potentialCustomerId2" type="hidden" name="id">
        <fieldset>
            <legend>修改状态</legend>
            <table align="center">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox" style="width:150px" readonly="true" name="name"></td>
                    <td>状态:</td>
                    <td><input id="editState" class="easyui-combobox" style="width:150px" name="state"
                               data-options="data:[{value:1,text:'未跟踪'},{value:2,text:'跟踪中'},{value:3,text:'资源池中'},{value:4,text:'正式学员'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'" >
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>
<%--状态添加和编辑对话框--底部按钮--%>
<div id="potentialCustomer_state_dialog_butten">
    <a href="#" class="easyui-linkbutton" data-cmd="state_save" >保存</a>
    <a href="#" class="easyui-linkbutton" data-cmd="state_close_dialog" >关闭</a>
</div>




<%--转正对话框--%>
<div id="potentialCustomer_become_dialog">
    <form id="potentialCustomer_become_form" method="POST" style="padding:20px">
        <input type="hidden" name="id">
        <fieldset>
            <legend>个人资料</legend>
            <table align="center">
                <tr>
                    <td>姓名:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="name"></td>
                    <td>年龄:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="age"></td>
                    <td>性别:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="gender"
                               data-options="data:[{value:'男',text:'男'},{value:'女',text:'女'}]
                                            ,valueField:'value', textField:'text',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>电话:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="phone" >
                    <td>QQ:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="qq" >
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="email" >
                </tr>
                <tr>
                    <td>意向校区:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="intentionCampus.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=12',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>意向班级:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="intentionClass.id"
                               data-options="url:'/grade/queryAllGrade',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>客户来源:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="source.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=14',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>学校:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="school"></td>
                    <td>学校客户:</td>
                    <td><input class="easyui-combobox" style="width:150px" name="schoolId.id"
                               data-options="url:'/bigClient/queryAllBigClient',
                              valueField:'id', textField:'schoolName',panelHeight:'auto'" >
                    </td>
                    <td>学历:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="educationBackground.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=10',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>营销人员:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="marketingPerson.id"
                               data-options="url:'/employee/queryEmployeeListByDepartmentId?id=3',
                              valueField:'id', textField:'realname',panelHeight:'auto'" >
                    </td>
                    <td>工作年限:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="jobTime"></td>
                    <td>地址:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="address"></td>
                </tr>
                <tr>
                    <td>客户类型:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="clientType.id"
                               data-options="data:[{value:0,text:'线上客户'},{value:1,text:'线下客户'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'">
                    </td>
                    <td>转正班级:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="ittclass.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=19',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>身份证号:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="idCard"></td>
                </tr>
                <tr>
                    <td>紧急联系人:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="emergencyName" >
                    <td>紧急电话:</td>
                    <td><input class="easyui-textbox" style="width:150px"  prompt="紧急联系人电话" name="emergencyTel" >
                    <td>就业意向:</td>
                    <td><input class="easyui-combobox" style="width:150px" name="jobintentionId"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=27',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <table align="center">
             <legend>缴费情况</legend>
                <tr>
                    <td>总学费:</td>
                    <td><input id="totalFee" class="easyui-textbox" style="width:150px" name="totalFee"></td>
                    <td>已交学费:</td>
                    <td><input id="paidFee" class="easyui-textbox" style="width:150px" name="paidFee"></td>
                    <td>未缴学费:</td>
                    <td><input id="noPay" class="easyui-textbox" style="width:150px" readonly="true" name="noPay"></td>
                </tr>
                <tr>
                    <td>支付方式:&nbsp;&nbsp;</td>
                    <td><input class="easyui-combobox" style="width:150px" name="payment.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=26',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>缴费状态:</td>
                    <td><input id="feeState" class="easyui-combobox" style="width:150px" readonly="true" name="feeState"
                               data-options="data:[{value:0,text:'未缴清'},{value:1,text:'已缴清'}]
                                           ,valueField:'value', textField:'text',panelHeight:'auto'">
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>
<%--转正对话框--底部按钮--%>
<div id="potentialCustomer_become_dialog_butten">
    <a href="#" class="easyui-linkbutton" data-cmd="become_save" >保存</a>
    <a href="#" class="easyui-linkbutton" data-cmd="become_close_dialog" >关闭</a>
</div>

<%--跟踪新增对话框--%>
<div id="followStudent_dialog">
    <form id="followStudent_form" method="POST" style="padding:20px">
        <input type="hidden" name="potentialcustomer.id">
        <fieldset>
            <legend>基本信息</legend>
            <table align="center">
                <tr>
                    <td>客户姓名:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="potentialcustomer.name"></td>
                    <td>电话:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="potentialcustomer.phone" ></td>
                    <td>QQ:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="potentialcustomer.qq" ></td>
                </tr>
                <tr>
                    <td>邮箱:</td>
                    <td><input class="easyui-textbox" style="width:150px" name="potentialcustomer.email" ></td>
                    <td>营销人员:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="potentialcustomer.marketingPerson.id"
                               data-options="url:'/employee/queryEmployeeListByDepartmentId?id=3',
                              valueField:'id', textField:'realname',panelHeight:'auto'" >
                    </td>
                    <td>跟踪人员:</td>
                    <td><input class="easyui-textbox" style="width:150px" editable="false" readonly="true" prompt="跟踪人员不用填" name="follow" >
                    </td>
                </tr>
                <tr>
                    <td>意向校区:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="potentialcustomer.intentionCampus.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=12',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>意向班级:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="potentialcustomer.intentionClass.id"
                               data-options="url:'/grade/queryAllGrade',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>意向程度:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="potentialcustomer.intentionDegree.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=16',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>跟踪时间:</td>
                    <td><input class="easyui-datebox" style="width:150px" editable="false" readonly="true" prompt="跟踪时间不用填" name="followTime"></td>
                    <td>交流目的:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="talkPurpose.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=22',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                    <td>交流方式:</td>
                    <td><input class="easyui-combobox com" style="width:150px" editable="false" name="talkMode.id"
                               data-options="url:'/systemDictionary/queryDictionaryBillByParentId?pId=21',
                              valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>交流时长:</td>
                    <td><input class="easyui-textbox text" style="width:150px" name="talkTime"></td>
                    <td>第几次跟踪:</td>
                    <td><input class="easyui-textbox" style="width:150px" readonly="true" name="followNumber"></td>
                    <td>下次跟踪时间:</td>
                    <td><input class="easyui-datebox date" style="width:150px" editable="false" name="nextFollowTime"></td>
                </tr>
            </table>
        </fieldset>
        <fieldset>
            <legend>其它信息</legend>
            <table align="center">
                <tr>
                    <td>摘要:</td>
                    <td><input class="easyui-textbox text" style="width:600px; height:100px;" multiline=true name="summary"></td>
                </tr>
                <tr>
                    <td>交流内容:</td>
                    <td><input class="easyui-textbox text" style="width:600px; height:100px;" multiline=true name="talkContent"></td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>

<%--跟踪对话框--底部按钮--%>
<div id="followStudent_dialog_butten">
    <a href="#" class="easyui-linkbutton" data-cmd="followStudent_save" >保存</a>
    <a href="#" class="easyui-linkbutton" data-cmd="followStudent_close_dialog" >关闭</a>
</div>


<%--考试添加对话框--%>
<div id="exam_dialog">
    <form id="exam_form" method="POST" style="padding:20px">
        <fieldset>
            <legend>考试管理信息</legend>
            <table align="center">
                <tr>
                    <td>学生姓名:</td>
                    <td><input class="easyui-combobox" editable="false" style="width:150px" readonly="true" name="potentialCustomer.id"
                               data-options="url:'/potentialCustomer/queryForList',
                                valueField:'id',textField:'name',panelHeight:'auto'">
                    </td>
                </tr>
                <tr>
                    <td>意向班级:</td>
                    <td><input class="easyui-combobox" style="width:150px" editable="false" name="potentialCustomer.intentionClass.id"
                               data-options="url:'/grade/queryAllGrade',
                               valueField:'id', textField:'name',panelHeight:'auto'" >
                    </td>
                </tr>
                <tr>
                    <td>考试类型:</td>
                    <td><input class="easyui-combobox" editable="false" style="width:150px" name="systemDictionaryBill.id" data-options="
                        url:'/systemDictionary/queryDictionaryBillByParentId?pId=28',
                        valueField:'id',
                        textField:'name',
                        panelHeight:'auto'
                    "></td>
                </tr>
                <tr>
                    <td>考试时间:</td>
                    <td><input class="easyui-datebox" style="width:150px" name="date" ></td>
                </tr>
                <tr>
                    <td>备注:</td>
                    <td><input class="easyui-textbox" name="remarks" multiline="true" data-options="
                        height:80, width:150, multiline:true
                    "></td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>


<%--考试对话框--底部按钮--%>
<div id="exam_dialog_butten">
    <a href="#" class="easyui-linkbutton" data-cmd="exam_save" >保存</a>
    <a href="#" class="easyui-linkbutton" data-cmd="exam_close_dialog" >关闭</a>
</div>


</body>
</html>
